package com.sam.chat.service;

import com.sam.chat.entity.ChatGroupDao;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sam.chat.vo.GroupVo;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sam
 * @since 2023-01-31
 */
public interface IChatGroupService extends IService<ChatGroupDao> {
    boolean createGroup(String groupName ,String userId, ArrayList<String> memberIdList);
    boolean deleteGroup(String groupId);
    boolean exitGroup(String groupId,String userId);
    List<GroupVo> getGroupList(String userId);
    GroupVo getGroupInfo(String groupId);
    boolean modifyGroupName(String groupId,String name);
    boolean addGroupMembers(String groupId,ArrayList<String> memberIdList);

}
